/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Orthopaedic Surgery Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20172 (C-0-T19465-S20096-S20172-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getOrthopaedicSurgeryProviderCodes()
 * @model extendedMetaData="name='OrthopaedicSurgeryProviderCodes'"
 * @generated
 */
public enum OrthopaedicSurgeryProviderCodes implements Enumerator {
	/**
	 * The '<em><b>207X00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207X00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207X00000X(0, "_207X00000X", "207X00000X"),

	/**
	 * The '<em><b>207XS0114X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207XS0114X_VALUE
	 * @generated
	 * @ordered
	 */
	_207XS0114X(1, "_207XS0114X", "207XS0114X"),

	/**
	 * The '<em><b>207XX0004X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207XX0004X_VALUE
	 * @generated
	 * @ordered
	 */
	_207XX0004X(2, "_207XX0004X", "207XX0004X"),

	/**
	 * The '<em><b>207XS0106X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207XS0106X_VALUE
	 * @generated
	 * @ordered
	 */
	_207XS0106X(3, "_207XS0106X", "207XS0106X"),

	/**
	 * The '<em><b>207XS0117X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207XS0117X_VALUE
	 * @generated
	 * @ordered
	 */
	_207XS0117X(4, "_207XS0117X", "207XS0117X"),

	/**
	 * The '<em><b>207XX0801X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207XX0801X_VALUE
	 * @generated
	 * @ordered
	 */
	_207XX0801X(5, "_207XX0801X", "207XX0801X"),

	/**
	 * The '<em><b>207XX0005X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207XX0005X_VALUE
	 * @generated
	 * @ordered
	 */
	_207XX0005X(6, "_207XX0005X", "207XX0005X");

	/**
	 * The '<em><b>207X00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207X00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207X00000X
	 * @model literal="207X00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207X00000X_VALUE = 0;

	/**
	 * The '<em><b>207XS0114X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207XS0114X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207XS0114X
	 * @model literal="207XS0114X"
	 * @generated
	 * @ordered
	 */
	public static final int _207XS0114X_VALUE = 1;

	/**
	 * The '<em><b>207XX0004X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207XX0004X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207XX0004X
	 * @model literal="207XX0004X"
	 * @generated
	 * @ordered
	 */
	public static final int _207XX0004X_VALUE = 2;

	/**
	 * The '<em><b>207XS0106X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207XS0106X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207XS0106X
	 * @model literal="207XS0106X"
	 * @generated
	 * @ordered
	 */
	public static final int _207XS0106X_VALUE = 3;

	/**
	 * The '<em><b>207XS0117X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207XS0117X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207XS0117X
	 * @model literal="207XS0117X"
	 * @generated
	 * @ordered
	 */
	public static final int _207XS0117X_VALUE = 4;

	/**
	 * The '<em><b>207XX0801X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207XX0801X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207XX0801X
	 * @model literal="207XX0801X"
	 * @generated
	 * @ordered
	 */
	public static final int _207XX0801X_VALUE = 5;

	/**
	 * The '<em><b>207XX0005X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207XX0005X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207XX0005X
	 * @model literal="207XX0005X"
	 * @generated
	 * @ordered
	 */
	public static final int _207XX0005X_VALUE = 6;

	/**
	 * An array of all the '<em><b>Orthopaedic Surgery Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OrthopaedicSurgeryProviderCodes[] VALUES_ARRAY =
		new OrthopaedicSurgeryProviderCodes[] {
			_207X00000X,
			_207XS0114X,
			_207XX0004X,
			_207XS0106X,
			_207XS0117X,
			_207XX0801X,
			_207XX0005X,
		};

	/**
	 * A public read-only list of all the '<em><b>Orthopaedic Surgery Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OrthopaedicSurgeryProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Orthopaedic Surgery Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OrthopaedicSurgeryProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OrthopaedicSurgeryProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Orthopaedic Surgery Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OrthopaedicSurgeryProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OrthopaedicSurgeryProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Orthopaedic Surgery Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OrthopaedicSurgeryProviderCodes get(int value) {
		switch (value) {
			case _207X00000X_VALUE: return _207X00000X;
			case _207XS0114X_VALUE: return _207XS0114X;
			case _207XX0004X_VALUE: return _207XX0004X;
			case _207XS0106X_VALUE: return _207XS0106X;
			case _207XS0117X_VALUE: return _207XS0117X;
			case _207XX0801X_VALUE: return _207XX0801X;
			case _207XX0005X_VALUE: return _207XX0005X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OrthopaedicSurgeryProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OrthopaedicSurgeryProviderCodes
